import {defineStore} from 'pinia'

export const useCountStore=defineStore("count",{
    //第三种修改方式，类似vuex的写法
    actions:{
        //这里的this就是store
        jia(vlaue){
            this.sum+=vlaue
        }
    },
    state() {
        return{
            sum:6,
            address:"111",
            phone:"2222"
        }   
    }
})